package graph;

import java.util.ArrayList;

/**
 *
 * @author sanichan
 */
public class GeoTag {
    
    private Long id_geo;
    private String date;
    private Place place;
    private User tagger;
    private ArrayList<User> users_tagged;

    public GeoTag(Long id_geo, String date, Place place, User tagger) {
        this.id_geo = id_geo;
        this.date = date;
        this.place = place;
        this.tagger = tagger;
    }
    
    

    public String getDate() {
        return date;
    }

    public Long getId_geo() {
        return id_geo;
    }

    public Place getPlace() {
        return place;
    }

    public User getTagger() {
        return tagger;
    }

    public ArrayList<User> getUsers_tagged() {
        return users_tagged;
    }


    @Override
    public String toString() {
        return "{" + date + ", " + place + '}';
    }

    
    public void addUserTagged(User u){
        users_tagged.add(u);
    }
    
}
